﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AutoSizeDemo.aspx.cs" Inherits="Demo.Web.AutoSizeDemo" %>

<%@ Register Assembly="System.Web.Silverlight" Namespace="System.Web.UI.SilverlightControls" TagPrefix="asp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Silverlight Demonstration: Auto-sizing Silverlight Control</title>
    <style type="text/css">
body { margin: 0 20 0 20; }
    </style>
</head>
<body>
    <form id="pageForm" runat="server">
        <asp:ScriptManager ID="scriptMgr" runat="server"></asp:ScriptManager>
        <h1>Browser Resizing Demo</h1>
        <p>Change the size of the browser window to see that the size of the Silverlight control is also adjusted.</p>
        <asp:Silverlight ID="xamlCtl" runat="server" Source="~/ClientBin/Demo.xap" MinimumVersion="2.0.31005.0" Width="100%" Height="100%" InitParameters="Show=AutoSizeDemo" />
        <p>This is a line below the Silverlight control.</p>
    </form>
</body>
</html>